<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
	<title>后台管理 - 商品管理</title>

	<meta name="keywords" content="{$Think.CONFIG.keywords}" />
	<meta name="description" content="{$Think.CONFIG.description}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

	<include file="Public/head" />
</head>
<?php $Goods='active';$ptitle='商品管理';$title='商品列表';?>
<body class="no-skin">
<include file="Public/header" />
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>

	<include file="Public/sidebar" />
	<div class="main-content">
		<div class="main-content-inner">
			<!-- #section:basics/content.breadcrumbs -->
			<include file="Public/breadcrumbs" />

			<!-- /section:basics/content.breadcrumbs -->
			<div class="page-content">
				<include file="Public/set" />

				<!-- /section:settings.box -->
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->
						<form name="admin_list_sea" class="form-search form-horizontal " method="get" action="{:U('index')}">
							<div class="row maintop">
								<div class="col-xs-12 col-sm-3">
									<a href="{:U('add')}" class="btn btn-xs all-btn btn-purple" type="button">
										<span class="ace-icon fa">+</span>
										添加新商品
									</a>
								</div>
								<!--搜索功能-->
								<div class="col-xs-12 col-sm-3 btn-sespan">
									<div class="input-group">
									<span class="input-group-addon">
										<i class="ace-icon fa fa-check"></i>
									</span>
										<input type="text" name="good_name" class="form-control search-query admin_sea" value="{$good_name}" placeholder="输入需查询的商品名" />
									<span class="input-group-btn">
										<button type="submit" class="btn btn-xs btm-input btn-purple">
											<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
											搜索
										</button>
									</span>
									</div>
								</div>
								<div class="input-group-btn">
									<a href="{:U('index')}">
										<button type="button" class="btn btn-xs all-btn btn-purple">
											<span class="ace-icon fa fa-globe icon-on-right bigger-110"></span>
											显示全部
										</button>
									</a>
								</div>
							</div>
						</form>
						<div class="space-4"></div>
						<div class="row">
							<table class="table table-striped table-bordered table-hover">
								<thead>
								<tr>
									<th class="center">ID</th>
									<th class="center">所属分类</th>
									<th class="center">名称</th>
									<th class="center">图片</th>
									<th class="center">单价</th>
									<th class="center">会员价</th>
									<th class="center">规格</th>
									<th class="center">单独收取安装费</th>
									<th class="center">包装尺寸(长x宽x高){$pack_unit}</th>
									<th class="center">操作</th>
								</tr>
								</thead>
								<tbody>
								<style>
									.grouptd{position:relative;}
									.group{display:inline-block;width:100%;}
									.groupselect{position:absolute;top:0;left:0;width:100%;height:100%;border:0;}
								</style>
								<volist name="list" id="val">
									<tr>
										<td class="center">{$val['good_id']}</td>
										<td class="center">{$val['good_cate_name']}</td>
										<td class="center">{$val['good_name']}</td>
										<td class="center"><img src="__ROOT__{$val['picture']}" width="60px"></td>
										<td class="center">{$val['price']}</td>
										<td class="center">{$val['vip_price']}</td>
										<td class="center">{$val['grade']}</td>
										<td class="center">
											<if condition="$val['alone_install'] eq 1">
												{$val['alone_install_price']} 元/个
											<else />
												-- --
											</if>
										</td>
										<td class="center">
											<if condition="($val['pack_length'] neq '') AND ($val['pack_width'] neq '') AND ($val['pack_height'] neq '')">
												{$val['pack_length']}x{$val['pack_width']}x{$val['pack_height']}
											<else />
												-- --
											</if>
										</td>
										<td class="center">
											<if condition="$val['is_new'] eq 0">
												<a class="btn btn-minier btn-warning ajax-delete " href="{:U('is_new',array('type' => 1,'good_id' => $val['good_id']))}" data-info="确认设置？">设置新品</a>&nbsp;&nbsp;
												<else/>
												<a class="btn btn-minier btn-info ajax-delete" href="{:U('is_new',array('type' => 0,'good_id' => $val['good_id']))}" data-info="确认取消？">取消新品</a>&nbsp;&nbsp;
											</if>
											<a class="btn btn-minier btn-danger" href="{:U('edit')}?uid={$val['good_id']}">编辑</a>&nbsp;&nbsp;
											<a class="btn btn-minier btn-danger ajax-delete" href="{:U('del')}?uid={$val['good_id']}" data-info="确认删除？">删除</a>
										</td>
									</tr>
								</volist>
								</tbody>
							</table>
							<div class="cf">
								<span class="pages">{$page}</span>
							</div>
						</div>
						<!-- PAGE CONTENT ENDS -->
					</div><!-- /.col -->
				</div><!-- /.row -->
			</div><!-- /.page-content -->
		</div>
	</div><!-- /.main-content -->
	<include file="Public/footer" />

</div><!-- /.main-container -->

<include file="Public/footerjs" />
<!-- inline scripts related to this page -->

</body>
</html>
